﻿using ruleEngineDemo.engine.viewmodel;

namespace ruleEngineDemo.engine.factory.product
{
    /// <summary>
    /// 从数据库获取rules
    /// </summary>
    public interface IEfRules
    {
        /// <summary>
        /// 设置条件
        /// </summary>
        /// <param name="conditions"></param>
        void SetConditions(dynamic[] conditions);
        /// <summary>
        /// 执行basic rules
        /// </summary>
        /// <returns></returns>
        RulesResult Run();
    }
}
